import java.util.Arrays;
import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-24
 * Time: 18:36
 */
public class Main {
    public static void main(String[] args) {
        TestHeap testHeap = new TestHeap();
        int[] array = {1,8,10,20,30,55,66};
        testHeap.createHeap(array);
        testHeap.push(99);

        System.out.println(Arrays.toString(testHeap.elem));
        System.out.println(testHeap.pollHeap());
        System.out.println(Arrays.toString(testHeap.elem));
    }
}
